package com.yuyou.fn.educational.service;

import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.educational.entity.Period;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.educational.vo.PeriodSaveOrUpdateVo;
import com.yuyou.fn.educational.vo.PeriodSegmentVo;
import com.yuyou.fn.educational.vo.PeriodVo;

import java.util.List;

/**
 *
 * Period 表数据服务层接口
 *
 */
public interface IPeriodService extends ISuperService<Period,Long> {


    List<Period> findAllFromCache();

    void saveOrUpdatePeriod(PeriodSaveOrUpdateVo periodSaveOrUpdateVo, List<PeriodSegmentVo> segmentList);


    PeriodVo findPeriodByPeriodId(Long periodId );


    Page<Period> findPeriodForPage(int pageNo, int pageSize);

}